home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / include / dixfontstr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-02-15  |  2.5 KB  |  72 lines

  1. /* $XConsortium: dixfontstr.h,v 1.6 89/03/11 15:20:13 rws Exp $ */
  2. /***********************************************************
  3. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
  4. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  5.  
  6.                         All Rights Reserved
  7.  
  8. Permission to use, copy, modify, and distribute this software and its 
  9. documentation for any purpose and without fee is hereby granted, 
  10. provided that the above copyright notice appear in all copies and that
  11. both that copyright notice and this permission notice appear in 
  12. supporting documentation, and that the names of Digital or MIT not be
  13. used in advertising or publicity pertaining to distribution of the
  14. software without specific, written prior permission.  
  15.  
  16. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  17. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  18. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  19. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  21. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  22. SOFTWARE.
  23.  
  24. ******************************************************************/
  25.  
  26. #ifndef DIXFONTSTRUCT_H
  27. #define DIXFONTSTRUCT_H
  28.  
  29. #include "dixfont.h"
  30. #include "font.h"
  31. #include "misc.h"
  32.  
  33. extern FontPtr    FontFileLoad(/* name, length */); /* implemented in OS layer */
  34. extern Bool    FontFilePropLoad(/* name, length, *font, fi, *props */);
  35. extern void    FontUnload(/* font */);
  36.  
  37. typedef struct _DIXFontProp {
  38.     ATOM    name;
  39.     INT32    value;    /* assumes ATOM is not larger than INT32 */
  40. } DIXFontProp;
  41.  
  42. /*
  43.  * FONT is created at font load time; it is not part of the
  44.  * font file format
  45.  */
  46. typedef struct _Font {
  47.     FontInfoPtr    pFI;
  48.     DIXFontProp    *pFP;
  49.     CharInfoPtr    pCI;            /* bitmap metrics and offset */
  50.     char    *pGlyphs;
  51.     pointer    osPrivate;
  52.     int        fileType;        /* tag for OS layer */
  53.     int        refcnt;            /* free storage when this goes to 0 */
  54.     pointer    devPriv[MAXSCREENS];    /* information private to screen */
  55.     CharInfoPtr    pInkCI;            /* ink metrics */
  56.     CharInfoPtr    pInkMin;        /* ink metrics */
  57.     CharInfoPtr    pInkMax;        /* ink metrics */
  58. } FontRec;
  59.  
  60.  
  61. /* in dixfont.c */
  62. extern FontPtr    OpenFont();
  63. extern Bool    SetDefaultFont();
  64. extern int    CloseFont();
  65. extern Bool    DescribeFont();
  66. extern void    ServerBitmapFromGlyph();
  67. extern Bool    CursorMetricsFromGlyph();
  68. extern void    GetGlyphs();
  69. extern Bool    QueryTextExtents();
  70.  
  71. #endif /* DIXFONTSTRUCT_H */
  72.